from api.api import ElasticSearchQueryResource
from flask_restful import reqparse


class SohuArticleSearchMiniResource(ElasticSearchQueryResource):
    pass


class SohuArticleSearchMXResource(ElasticSearchQueryResource):
    pass


sohu_match_parser = reqparse.RequestParser()
sohu_match_parser.add_argument('youka_id', type=str, location='json')
sohu_match_parser.add_argument('term', type=str, location='json')
sohu_match_parser.add_argument('from', type=int, location='json')
sohu_match_parser.add_argument('size', type=int, location='json')
sohu_match_parser.add_argument('deduplicate', type=bool, location='json')
sohu_match_parser.add_argument('highlight', type=bool, location='json')
sohu_match_parser.add_argument('order_by', type=str, location='json')
sohu_match_parser.add_argument('festivals', type=list, location='json')
sohu_match_parser.add_argument('filters', type=dict, location='json')
sohu_match_parser.add_argument('hot_events', type=list, location='json')
sohu_match_parser.add_argument('wordcloud', type=bool, location='json')
